﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Menadzer/ManagerModule.Master" AutoEventWireup="true" CodeBehind="Rezerwacje.aspx.cs" Inherits="Hotel_Management.Manager.Rezerwacje" %>
<asp:Content ID="Content1" runat="server" contentplaceholderid="MainContent2">
    <br />
    Lista rezerwacji:<br />
    <br />
    <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
        AllowSorting="True" AutoGenerateColumns="False" 
        BackColor="LightGoldenrodYellow" BorderColor="Tan" BorderWidth="1px" 
        CellPadding="2" DataKeyNames="id_rez" DataSourceID="LinqDataSource1" 
        ForeColor="Black" GridLines="None" HorizontalAlign="Center" Width="80%">
        <AlternatingRowStyle BackColor="PaleGoldenrod" />
        <Columns>
            <asp:CommandField ShowDeleteButton="True" ShowEditButton="True" />
            <asp:BoundField DataField="id_rez" HeaderText="id_rez" InsertVisible="False" 
                ReadOnly="True" SortExpression="id_rez" />
            <asp:BoundField DataField="id_kl" HeaderText="id_kl" 
                SortExpression="id_kl" />
            <asp:BoundField DataField="nr_pokoju" HeaderText="nr_pokoju" 
                SortExpression="nr_pokoju" />
            <asp:BoundField DataField="od" HeaderText="od" SortExpression="od" />
            <asp:BoundField DataField="do" HeaderText="do" SortExpression="do" />
        </Columns>
        <FooterStyle BackColor="Tan" />
        <HeaderStyle BackColor="Tan" Font-Bold="True" />
        <PagerStyle BackColor="PaleGoldenrod" ForeColor="DarkSlateBlue" 
            HorizontalAlign="Center" />
        <RowStyle HorizontalAlign="Center" />
        <SelectedRowStyle BackColor="DarkSlateBlue" ForeColor="GhostWhite" />
        <SortedAscendingCellStyle BackColor="#FAFAE7" />
        <SortedAscendingHeaderStyle BackColor="#DAC09E" />
        <SortedDescendingCellStyle BackColor="#E1DB9C" />
        <SortedDescendingHeaderStyle BackColor="#C2A47B" />
    </asp:GridView>
    <asp:LinqDataSource ID="LinqDataSource1" runat="server" 
        ContextTypeName="Hotel2.App_Data.BazaDanych" EnableDelete="True" 
        EnableInsert="True" EnableUpdate="True" EntityTypeName="" 
        TableName="Reserwacjes" OrderBy="id_rez">
    </asp:LinqDataSource>
</asp:Content>


